<%@ page language="java"
	import="java.util.*,java.text.*,java.lang.*,java.sql.*,entity.*,util.*,dao.*"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%
		request.setCharacterEncoding("utf-8");
		String name = request.getParameter("name");
		String pass = request.getParameter("pass");
		Student s = new Student();
		s.setSname(name);
		s.setPass(pass);
		Jic j = new Jic();
		if (j.yanzheng(s) == 0) {
		out.print("<script>alert('请登陆');location.replace('Studentlogin.jsp')</script>");
		}else{
			session.setAttribute("login", s);
			response.sendRedirect("examStudent.jsp");
		}
	%>

</body>
</html>